<!-- Begin of titlebar/breadcrumbs -->
<div id="title-bar">
	<ul id="breadcrumbs">
		<li><a href="index.php" title="Home"><span id="bc-home"></span></a></li>
		<li class="no-hover"><a href="index.php?module=user_manager">User Manager</a></li>
		<li class="no-hover"><a href="index.php?module=edit_user">Edit User</a></li>
	</ul>
</div> <!--! end of #title-bar -->

<div class="shadow-bottom shadow-titlebar"></div>


<!-- Begin of #main-content -->
<div id="main-content">
	<div class="container_12">

		<div class="grid_12">
			<h1>Edit User</h1>
			<p>You can edit user and edit authority.</p>
		</div>

		<?php
			if($showPage == false)
			{
			?>
			<div class="alert error"><strong>Error!</strong> you cant login this page!.</div>
			<?php
			}
			else
			{
				if($_POST)
				{
					if($hata['sonuc'] == false)
					{
					?>
					<div class="alert error"><strong>Error!</strong> <?php echo $hata['aciklama']; ?></div>
					<?php
					}
					elseif($hata['sonuc'] == true)
					{
					?>
					<div class="alert success"><strong>Success</strong> <?php echo $hata['aciklama']; ?></div>
					<?php
					}
				}
			?>
			<div class="grid_7">
				<div class="block-border">
					<div class="block-header">
						<h1>Edit User</h1><span></span>
					</div>
					<form id="form" class="block-content form" action="" method="post">
						<fieldset>
							<legend>User Details</legend>
							<div class="_100">
								<p>
									<label for="textfield1">User Name <a rel="tooltip-right" original-title="Enter User Name"><img src="img/icons/packs/fugue/16x16/information.png" border="0"></a></label>
									<input id="textfield1" type="text" readonly="readonly" value="<?php echo $user['user_name']; ?>" class="text" name="user_name"></p>
							</div>


							<div class="_100">
								<p>
									<label for="textfield1">Name Surname<a rel="tooltip-right" original-title="Enter User Name and Surname"><img src="img/icons/packs/fugue/16x16/information.png" border="0"></a></label>
									<input id="textfield1" type="text" value="<?php echo $user['name_surname']; ?>" class="text" name="name_surname"></p>
							</div>
								
							<div class="_100">
								<p id="password_content">
									<label for="textfield1">Enter New Password <a rel="tooltip-right" original-title="If you needed changeEnter Password"><img src="img/icons/packs/fugue/16x16/information.png" border="0"></a></label>
									<input id="textfield1" type="password" value="" class="text" name="password"></p>
							</div>

							<div class="_100">
								<p>
									<label for="textfield1">Bigpoint Global ID <a rel="tooltip-right" original-title="Enter Bigpoint Global ID"><img src="img/icons/packs/fugue/16x16/information.png" border="0"></a></label>
									<input id="textfield1" type="text" value="<?php echo $user['global_id']; ?>" class="text" name="global_id"></p>
							</div>
						</fieldset>

						<fieldset>
							<legend>Group</legend>
							<div class="grid_12" style="padding-top: 15px;">
								<div class="_100">	
									<p class="inline-small-label">
										<span class="label">User Group</span>
										<select name="authority_group_id">
											<option value="0" <?php if($user['authority_group_id'] == 0){ echo 'selected="selected"'; } ?>>Block User</option>
											<?php
												foreach($groupsArray as $group)
												{
												?>
												<option value="<?php echo $group['id']; ?>" <?php if($user['authority_group_id'] == $group['id']){ echo 'selected="selected"'; } ?>><?php echo $group['group_name']; ?></option>
												<?php
												}	
											?>
										</select>
									</p>
								</div>




							</div>							
						</fieldset>

						<div class="block-actions">
							<ul class="actions-left">
								<li><a class="close-toolbox button red" href="javascript:void(0);">Reset</a></li>
							</ul>
							<ul class="actions-right">
								<li><input type="submit" value="Create User" class="close-toolbox button"></li>
							</ul>
						</div>
					</form>
				</div>
			</div>

			<div class="clear height-fix"></div>
			<?php } ?>	
	</div>
	</div> 
<!--! end of #main-content -->